package com.ehome.poct.base.device.service;

import com.ehome.core.service.AbstractCrudServiceImpl;
import com.ehome.poct.base.api.virtual.TestBloodQualityFactoryDataService;
import com.ehome.poct.base.api.dto.device.AddFactoryModeDTO;
import com.ehome.poct.base.device.repository.TestBloodQualityFactoryDataRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

@Service
public class TestBloodQualityFactoryDataServiceImpl extends AbstractCrudServiceImpl<AddFactoryModeDTO> implements TestBloodQualityFactoryDataService {

    @Autowired
    TestBloodQualityFactoryDataRepository testBloodQualityFactoryDataRepository;

    /**
     * 工厂模式
     * @param addFactoryModeDTO 工厂模式请求参数
     * @return true/false
     */
    @Override
    public Boolean AddFactoryMode(@RequestBody AddFactoryModeDTO addFactoryModeDTO) {
        return testBloodQualityFactoryDataRepository.AddFactoryMode(addFactoryModeDTO);
    }
}
